package com.example.springboot.modules.order.controller;

import com.example.springboot.common.utils.JsonResult;
import com.example.springboot.modules.order.model.Supplier;
import com.example.springboot.modules.order.service.SupplierService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by zql on 2018/7/15.
 */
@RestController
@RequestMapping("/supplier")
public class SupplierController {
    @Autowired
    private SupplierService supplierService;
    @RequestMapping("/getList")
    public PageInfo<Supplier> getSupplierList(){
        List<Supplier> list = supplierService.getSupplierList();
        return new PageInfo<Supplier>(list);
    }
}
